package com.jizhi.controller;


import com.jizhi.entity.Examine;
import com.jizhi.service.ExamineService;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 罗兆良
 * @since 2020-11-16
 */
@RestController
@RequestMapping("/examine")
public class ExamineController {
    private static final Logger logger = LoggerFactory.getLogger(ExamineController.class);

    @Resource
    private ExamineService examineService;

    @ApiOperation(value = "添加检查单表", notes = "添加检查单表")
    @RequestMapping(value = "/getAddExamine", method = RequestMethod.POST)
    public String getAddExamine(Examine examine){
        int addExamine = examineService.getAddExamine(examine);
        if (addExamine>0){
            return "添加成功";
        }else {
            return "添加失败";
        }
    }
}

